Fluent Assertions Documentation
FluentAssertions.Equivalency Namespace / SelfReferenceEquivalencyOptions<TSelf> Class / Using Method / Using<T,TEqualityComparer>() Method
In This Topic
    Using<T,TEqualityComparer>() Method
    In This Topic
    Ensures the equivalency comparison will create and use an instance of TEqualityComparer that implements IEqualityComparer, any time when a property is of type T.
    Syntax
    public TSelf Using<T,TEqualityComparer>()
    where TEqualityComparer: new(), IEqualityComparer<T>

    Type Parameters

    T
    TEqualityComparer
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also